/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.javafxcodegenerators.helpergenerators;

import pl.edu.amu.wmi.kino.visualjavafx.model.animation.transformations.Opacitable;

/**
 *
 * @author Admin
 */
public class OpacityGenerator {
    public static String opacity="opacityParam";

    public static void generateOpacityVar(StringBuilder sb,Opacitable o,int recursionLevel){
        sb.append("var "+opacity+recursionLevel+"="+o.getOpacity()+";\n");
    }
    
    public static void generateOpacityAttribute(StringBuilder sb,int recursionLevel){
        sb.append("override attribute opacity=bind "+opacity+recursionLevel+";\n");
    }

}
